package com.hllxd.hism.star.basic.service.util;

import java.math.BigDecimal;

/**
 * @author lixiyong01
 * @date 2021.11.27
 */
public class Formatter {

	public static double scale(double number, int scale) {
		BigDecimal bigDecimal = new BigDecimal(number);
		return bigDecimal.setScale(scale, BigDecimal.ROUND_HALF_UP).doubleValue();
	}
}
